package chapter21.section3;

/**
 * Created by lzy
 * Date: 2018/6/4
 */
public class PairManager1 extends PairManager {
    @Override
    public synchronized void increment() {
        p.incrementX();
        p.incrementY();
        store(getPair());
    }
}
